package com.magina.common.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TestSortModel {

    private Integer integerColmn;
    private int intColumn;

    private String strColumn;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date dateColumn;

    private Long aLongColumn;
    private long longColumn;

    private Double aDoubleColumn;
    private double doubleColumn;

    private BigDecimal bigDecimalColumn;

    private TestSortInnerModel innerModel;

    @Override
    public String toString() {
        return "TestSortModel{" +
                "integerColmn=" + integerColmn +
                ", intColumn=" + intColumn +
                ", strColumn='" + strColumn + '\'' +
                ", dateColumn=" + dateColumn +
                ", aLongColumn=" + aLongColumn +
                ", longColumn=" + longColumn +
                ", aDoubleColumn=" + aDoubleColumn +
                ", doubleColumn=" + doubleColumn +
                ", bigDecimalColumn=" + bigDecimalColumn +
                ", innerModel=" + innerModel +
                '}';
    }
}
